﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace VersionComparer.Base
{
    /// <summary>
    /// This class represents a manager thread
    /// </summary>
    public class ManagedThread
    {
        #region constructors
        public ManagedThread(BackgroundWorker worker)
        {
            Worker = worker;
        }
        #endregion constructors

        #region properties
        /// <summary>
        /// Background worker 
        /// </summary>
        BackgroundWorker Worker
        {
            get;
            set;
        }
        /// <summary>
        /// Flag indicating if the thread has been cancelled
        /// </summary>
        public bool CancellationPending
        {
            get
            {
                return Worker.CancellationPending;
            }
        }
        #endregion properties
    }
}
